package interface接口;
//定义一个动物类
public abstract class anmals {
    private int age;
    private String name;
    public anmals() {
    }

    public anmals(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract void eat();
}
